
project(SwareMain)

include_directories(
${PROJECT_SOURCE_DIR}/../3rdparty/imgui
${PROJECT_SOURCE_DIR}/../3rdparty/stb_image
${PROJECT_SOURCE_DIR}/../3rdparty/svg
${PROJECT_SOURCE_DIR}/../3rdparty/glfw/include
${PROJECT_SOURCE_DIR}/../3rdparty/glad/include
${PROJECT_SOURCE_DIR}/../3rdparty/app/include
${PROJECT_SOURCE_DIR}/../3rdparty/spdlog/include
${PROJECT_SOURCE_DIR}/../3rdparty/task
${PROJECT_SOURCE_DIR}/../3rdparty/http
${PROJECT_SOURCE_DIR}/../3rdparty/nlohmann_json/single_include)

link_directories(${PROJECT_SOURCE_DIR}/../lib)


set(RESOURCE_SRCS
	ResourceManager.h
	ResourceManager.cpp
	Svg.h
	Svg.cpp
	Log.h
	Log.cpp
)

SOURCE_GROUP("image" FILES ${RESOURCE_SRCS})

set(SRCS
	${RESOURCE_SRCS}
	main.cpp
)

add_executable(${PROJECT_NAME} ${SRCS})

set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/../../bin)

target_link_libraries(${PROJECT_NAME} app.lib imgui.lib glfw.lib glad.lib spdlog.lib stb_image.lib task.lib http.lib opengl32.lib)